package com.swfgui.managers.lang
{
	/**
	 * "{0}获得了{1}" -> "杀神获得了诛仙剑"；还可根据此函数提炼语言表
	 * @param text
	 * @param args
	 */
	public function TS(text:String, ... args):String
	{
		var n:int = args.length;
		for (var i:int = 0; i < n; i++) 
		{
			text = text.replace(new RegExp("\\{" + i.toString() + "\\}", "g"), args[i]);
		}

		return text;
	}
}